<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header">
	<link rel="stylesheet" href="/js/plugins/layer/laydate/skins/default/laydate.css" />
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">	
								<label class="col-sm-3 control-label">送货日期：</label>
								<div class="col-sm-8">
									<input id="deliverytime" name="deliverytime" class="laydate-icon layer-date form-control" readonly type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">客户联系人：</label>
								<div class="col-sm-8">
									<input id="customercontact" name="customercontact" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">联系电话：</label>
								<div class="col-sm-8">
									<input id="contactnumber" name="contactnumber" class="form-control" type="text" onkeyup="value=value.replace(/[^\d]/g,'')">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">送货地址：</label>
								<div class="col-sm-8">
									<input id="deliveryaddress" name="deliveryaddress" class="form-control" type="text">
								</div>
							</div>
														<!--<div class="form-group">
								<label class="col-sm-3 control-label">关联销售单号：</label>
								<div class="col-sm-8">
									<input id="sselesnumber" name="sselesnumber" class="form-control" type="text">
								</div>
							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">是否关联到用户：</label>
								<div class="col-sm-8">
									<input id="yes" type="checkbox" value="1">关联
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<input type="button" value="提交" onclick="upload()">
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript">
		$().ready(function() {
			laydate({
				elem: '#deliverytime'
			});
		});

		function upload() {
			var customercontact = $("#customercontact").val();
			var deliverytime = $("#deliverytime").val();
			var contactnumber = $("#contactnumber").val();
			var deliveryaddress = $("#deliveryaddress").val();
			parent.$("#deliverytime").val(deliverytime);
			parent.$("#customercontact").val(customercontact);
			parent.$("#contactnumber").val(contactnumber);
			parent.$("#deliveryaddress").val(deliveryaddress);
			var index = parent.layer.getFrameIndex(window.name);//获得index
			setTimeout(function () { parent.layer.close(index) }, 500);//延迟                    //layer信息提示
			/*parent.$('#goodsTable').bootstrapTable('refresh');*/
			parent.location.reload();
		}
	</script>
	<script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js" ></script>
</body>
</html>
